package com.gc.server.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import com.gc.server.entity.LinkHeadEntity;
import com.gc.server.vo.LinkHeadVo;

                                    
/**
 * 连锁总部实体
 * 表名 link_head
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 15:40:31 CST 2020
 */
@Data
public class LinkHeadDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //系统编号
            @ExcelProperty("编号")
            private String code;
        
                        //名称
            @ExcelProperty("简称")
            private String name;
        
                        //简称
            @ExcelProperty("名称")
            private String nick;
        
                        //省
            @ExcelProperty("省")
            private String province;
        
                        //市
            @ExcelProperty("市")
            private String city;
        
                        //县
            @ExcelProperty("县")
            private String county;
        
                        //详细地址
            @ExcelProperty("详细地址")
            private String detail;
        
                        //备注
            @ExcelProperty("备注")
            private String remark;

            @ExcelProperty("创建时间")
            private Date date;
        
    
    public LinkHeadDown() {

    }

    public LinkHeadDown(LinkHeadVo vo) {
        LinkHeadEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
                                    this.setDate(entity.getDate());
                                    this.setCode(entity.getCode());
            
                                    this.setName(entity.getName());
            
                                    this.setNick(entity.getNick());
            
                                    this.setProvince(entity.getProvince());
            
                                    this.setCity(entity.getCity());
            
                                    this.setCounty(entity.getCounty());
            
                                    this.setDetail(entity.getDetail());
            
                                    this.setRemark(entity.getRemark());
            
            }


}
